package com.dumengwei.mn3.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

public class Bank {
	private Integer id;
	private String name;
	private Integer roomId;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date startTime;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date endTime;
	private BigDecimal account;
	private String remarks;
	
	/**
	 * 扩展菜品集合
	 */
	private List<Dishes>diss;
	
	public Bank() {
		// TODO Auto-generated constructor stub
	}
	public Bank(Integer id, String name, Integer roomId, Date startTime, Date endTime, BigDecimal account,
			String remarks) {
		super();
		this.id = id;
		this.name = name;
		this.roomId = roomId;
		this.startTime = startTime;
		this.endTime = endTime;
		this.account = account;
		this.remarks = remarks;
	}
	
	public List<Dishes> getDiss() {
		return diss;
	}
	public void setDiss(List<Dishes> diss) {
		this.diss = diss;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getRoomId() {
		return roomId;
	}
	public void setRoomId(Integer roomId) {
		this.roomId = roomId;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public BigDecimal getAccount() {
		return account;
	}
	public void setAccount(BigDecimal account) {
		this.account = account;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	@Override
	public String toString() {
		return "Bank [id=" + id + ", name=" + name + ", roomId=" + roomId + ", startTime=" + startTime + ", endTime="
				+ endTime + ", account=" + account + ", remarks=" + remarks + "]";
	}
	
}
